package com.leyou.cart.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "tb_collection")
public class Favorite {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    private Long skuId;// 商品id
    private String title;// 标题
    private String image;// 图片
    private Integer stock;
    private Long price;// 加入购物车时的价格
    private String ownSpec;// 商品规格参数
    private Boolean enable;
    private Long userId;//用户ID

}
